﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DIProject.Data
{
   public class Department
    {
       /// <summary>
       /// Подразделение где мы находимся
       /// </summary>
       public static Int32 CurrentDepartment
       {
           get
           {
               DataSets.UtilTableAdapters.UtilQueries adapt = new DIProject.DataSets.UtilTableAdapters.UtilQueries();
               Int32? res = adapt.CurrentDepartment();
               if (!res.HasValue)
                   return Int32.MinValue;
               return res.Value;
           }
       }
    }
}
